Matthew 6:19
"Do not lay up for yourselves treasures on earth, where moth and rust destroy and where thieves break in and steal,
treasures on earth
The main idea of Jesus's teaching is that spiritual riches are eternal and guaranteed by right living, while earthly riches will not profit in the day of death.
Proverbs 11:4
Riches do not profit in the day of wrath,
but righteousness delivers from death.
Ecclesiastes 3:9, 12
What gain has the worker from his toil…?
I perceived that there is nothing better for them than to be joyful and to do good as long as they live.Ecclesiastes 12:13
The end of the matter; all has been heard. Fear God and keep his commandments, for this is the whole duty of man.
It is no sin to make or to have money, but what do we truly treasure?
moth and rust destroy
The word here rendered "destroy" (ἀφανίζω) first appeared just three verses earlier in Matthew 6:16, "they disfigure their faces." Both instances represent frustration: the hypocrites do not get credit for fasting, and the greedy do not get to take their riches with them into eternity.
The Greek lexicon tells us the word means "to make unseen or hide; to make disappear; to do away with or carry off."
The same word appears in connection with boastful enterprises, again drawing attention to the uncertainty of riches and brevity of life.
James 4:13-14
Come now, you who say, "Today or tomorrow we will go into such and such a town and spend a year there and trade and make a profit"— yet you do not know what tomorrow will bring. What is your life? For you are a mist that appears for a little time and then vanishes.